<template>
  <van-nav-bar
      title="查看公告"
      left-text="返回"
      left-arrow
      @click-left="router.back()"
  />
  <div class="notice-content" v-html="html"></div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import {useRouter} from "vue-router";

const router = useRouter();
const show = ref(false)
const html = sessionStorage.getItem("notice")
const props = defineProps({
  html: ''
})
</script>

<style>
.notice-content {
  //padding: 0 16px 16px 16px;

  background: #fff;
  font-size: 14px;
  //line-height: 1.6;
  margin: 0 20px 20px 20px;
}
.notice-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}
</style>
